package com.hmall.mapper;

import com.hmall.model.SysDept;
import com.hmall.util.MyMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;
@Repository
public interface SysDeptMapper extends MyMapper<SysDept> {

    List<Map<String, Object>> queryName(@Param("subName") String subName);

    List<SysDept> selectALLDept();

    Integer selectIdByName(@Param("name") String name);


    List<SysDept> selectMyDept(@Param("dept_id") Integer dept_id);
}